package com.chenjun.mysite.common;

public class Message {
	public enum Type {
		success, info, warning, danger
	}
	
	public Message(String text) {
		this.text=text;
		this.type=Type.success;
	}
	
	public Message(String text,Type type) {
		this.text=text;
		this.type=type;
	}
	
	private String text;
	private Type type;
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Type getType() {
		return type;
	}
	public void setType(Type type) {
		this.type = type;
	}
	
	
}
